package com.songjia.springcloud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.songjia.common.model.po.Dept;
import com.songjia.springcloud.mapper.DeptMapper;
import com.songjia.springcloud.service.DeptService;

@Service
public class DeptServiceImpl implements DeptService {

	@Autowired
	private DeptMapper deptMapper;

	@Override
	public Dept getDeptDetail(Long id) {
		return this.deptMapper.getById(id);
	}

	@Override
	public List<Dept> getDeptList() {
		return this.deptMapper.getAll();
	}

}
